import { Module, Global } from '@nestjs/common';
import { CaptchaService } from './captcha.service';
import { CaptchaController } from './captcha.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Captcha } from './captcha.entity';

@Global()
@Module({
  imports: [TypeOrmModule.forFeature([Captcha])],
  providers: [CaptchaService],
  exports: [CaptchaService],
  controllers: [CaptchaController],
})
export class CaptchaModule {}
